
i=$1
file_title="对比： $i - ${2}"
file_png="boc-ab-${i}.png"
file_data="boc-ab-${i}.txt"

gnuplot <<- EOF
	set terminal png; 
	set terminal pngcairo size 960,600 enhanced
	set output "${file_png}"
	datafile="$file_data"
	set title  "$file_title"
	set xlabel "运行进度（%）"; 
	set ylabel "响应(毫秒)"; 
	set grid
	set xtics ("" 0, "50" 1, "66" 2, "75" 3, "80" 4, "90" 5, "95" 6, "98" 7, "99" 8, "100" 9)
	#set term post eps
	#set output "test.eps"
	plot datafile using 2 with lines title "url1", datafile using 3 with lines title "url2", datafile using 4 with lines title "url3", datafile using 5 with lines title "url4" 
EOF


